﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Viki_Model;
using Viki_IDal;

namespace Viki_DAL
{
    public class UserDao:IUserDao
    {
        public Boolean findUser(String username)
        {
            UserDataContext userdata = new UserDataContext();
            

            var user = from b in userdata.User
                                    where b.user_email == username
                                    select b;
            if(user.Count()< 1)

            return false;

          else
            return true;


        }
    }
}
